﻿using System.Collections.ObjectModel;

namespace ServerCrafter.ClassLibrary.ViewModels
{
    public sealed class InstalledCoreMod
    {
        public string Name { get; set; }
    }

    public class VMInstalledCoreMods
    {
        public ObservableCollection<InstalledCoreMod> Get()
        {
            {
                var installedCoreMods = new ObservableCollection<InstalledCoreMod>();

                for (var i = 0; i < ModManager.InstalledCoreMods.Count; i++)
                {
                    var installedCoreMod = new InstalledCoreMod
                        {
                            Name = ModManager.InstalledCoreMods.List[i]
                        };
                    installedCoreMods.Add(installedCoreMod);
                }
                return installedCoreMods;
            }
        }
    }
}